latent prompt
Instance-Adaptive Prompts as Context for Time-Series Foundation Models
Xiao, Zehao, Xie, Shifeng, Zan, Lei, Zhang, Jianfeng, Pan, Lujia, Redko, Ievgen, Tiomoko, Malik, Zhang, Keli
ABSTRACT Longer histories can improve time-series foundation models (TSFMs), but require substantially higher inference cost. We therefore ask whether contextual information can be provided more efficiently through a compact set of learned token embeddings. We introduce PaCTS, which generates a small set of instanceadaptive latent prompts in the form of continuous embedding tokens conditioned on the visible context. These prompts serve as compact context surrogates for frozen TSFMs. The prompt module is jointly trained and deployed across heterogeneous time series with the frozen backbone. Extensive experiments demonstrate the effectiveness of prompts as context, consistently improving forecasting across context lengths and model architectures. With a shorter input context, PaCTS can outperform the same frozen backbone using double context while requiring substantially less inference computation. Compared with weight-space adaptation methods, PaCTS achieves stronger improvements and better out-of-distribution generalization. Code will be released at https://github.com/zzzx1224/PaCTS. 1 INTRODUCTION Foundation models (FMs) have achieved remarkable success in language (Achiam et al., 2023; Team et al., 2023; Liu et al., 2024a) and vision tasks (Dosovitskiy et al., 2020; Radford et al., 2021), demonstrating the ability of large-scale pretraining to deliver strong performance and generalization across tasks (Bommasani et al., 2021). Recently, time-series foundation models (TSFMs) have emerged as a general approach to address unique challenges of large-scale temporal data (Woo et al., 2024; Auer et al., 2025; Podest et al., 2026; Khwaja et al., 2026; Xie et al., 2026a). Pretrained on diverse temporal data, these models achieve strong forecasting performance across datasets and domains without task-specific training (Ansari et al., 2025; Das et al., 2024; Meyer Figure 1: PaCTS improves forecasting at lower et al., 2026). TSFMs identify temporal patterns and forecast future values based on historical context.
Molecule Design by Latent Prompt Transformer
This work explores the challenging problem of molecule design by framing it as a conditional generative modeling task, where target biological properties or desired chemical constraints serve as conditioning variables.We propose the Latent Prompt Transformer (LPT), a novel generative model comprising three components: (1) a latent vector with a learnable prior distribution modeled by a neural transformation of Gaussian white noise; (2) a molecule generation model based on a causal Transformer, which uses the latent vector as a prompt; and (3) a property prediction model that predicts a molecule's target properties and/or constraint values using the latent prompt. LPT can be learned by maximum likelihood estimation on molecule-property pairs. During property optimization, the latent prompt is inferred from target properties and constraints through posterior sampling and then used to guide the autoregressive molecule generation.After initial training on existing molecules and their properties, we adopt an online learning algorithm to progressively shift the model distribution towards regions that support desired target properties. Experiments demonstrate that LPT not only effectively discovers useful molecules across single-objective, multi-objective, and structure-constrained optimization tasks, but also exhibits strong sample efficiency.
LaPA: Latent Prompt Assist Model For Medical Visual Question Answering
Gu, Tiancheng, Yang, Kaicheng, Liu, Dongnan, Cai, Weidong
Medical visual question answering (Med-VQA) aims to automate the prediction of correct answers for medical images and questions, thereby assisting physicians in reducing repetitive tasks and alleviating their workload. Existing approaches primarily focus on pre-training models using additional and comprehensive datasets, followed by fine-tuning to enhance performance in downstream tasks. However, there is also significant value in exploring existing models to extract clinically relevant information. In this paper, we propose the Latent Prompt Assist model (LaPA) for medical visual question answering. Firstly, we design a latent prompt generation module to generate the latent prompt with the constraint of the target answer. Subsequently, we propose a multi-modal fusion block with latent prompt fusion module that utilizes the latent prompt to extract clinical-relevant information from uni-modal and multi-modal features. Additionally, we introduce a prior knowledge fusion module to integrate the relationship between diseases and organs with the clinical-relevant information. Finally, we combine the final integrated information with image-language cross-modal information to predict the final answers. Experimental results on three publicly available Med-VQA datasets demonstrate that LaPA outperforms the state-of-the-art model ARL, achieving improvements of 1.83%, 0.63%, and 1.80% on VQA-RAD, SLAKE, and VQA-2019, respectively. The code is publicly available at https://github.com/GaryGuTC/LaPA_model.